<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"/>
		<script src="js/axios.min.js"></script>
		<script src="js/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<table class="table table">
				<tr>
					<td>编号</td>
					<td>店铺名</td>
					<td>经营范围</td>
					<td>状态</td>
					<td>归属用户</td>
				</tr>
				<tr v-for="v in store">
					<td>{{v.ID}}</td>
					<td>{{v.Name}}</td>
					<td>{{v.Engaged}}</td>
					<td>{{v.Status}}</td>
					<td>{{v.UserId}}</td>
				</tr>
			</table>
		</div>
	</body>
</html>
<script>
var app=new Vue({
	el:"#app",
	data:{
		store:[{ "ID": 1, "CreatedAt": "2025-04-20T18:52:05.539+08:00", "UpdatedAt": "2025-04-20T18:52:05.539+08:00", "DeletedAt": null, "Name": "张三铁板大鱿鱼", "Engaged": "夜宵烧烤", "Status": "营业中", "UserId": 1 }],
		
	},methods:{
		List(){
			axios.get("http://127.0.0.1:8088/store/list").then(res=>{
				console.log(res.data)
				this.store=res.data.Data
			})
		},//
	},created() {
		this.List()
	},//
})
</script>